<%@ page import="com.xyc.pojo.Song" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>添加新歌单</title>
    <style>
        .style {
            text-align: center; /*让div内部文字居中*/
            background-color: #98F5FF;
            border-radius: 20px;
            width: 370px;
            height: 500px;
            margin: auto;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    </style>
</head>
<body>

<div class="style">
    <h2 style="color:blue">选择歌曲添加</h2>
    <form action="addNewListReal" method="post">
        <table>
            <tr style="text-align: center">

                <%
                    //获取所有歌曲
                    List<Song> songList = (List<Song>) session.getAttribute("songList_1203");
                    for (int i = 0; i < songList.size(); i++) {
                        Song song = songList.get(i);
                %>
                <div style="font-size: 18px;"><input name="music" type="checkbox" value="<%=i%>"/> <%=song.getName()%>
                </div>
                <%}%>


            </tr>

            <tr>
                <td>输入歌单名</td>
                <td><input type="text" value="" name="list_name"/></td>
            </tr>
            <tr>
                <td>备注</td>
                <td>
                    <input type="text" value="" name="list_memo"/>
                </td>
            </tr>

        </table>
        <p><input type="submit" value="确认" style="font-size:25px;"/></p>
    </form>
</div>
</body>
</html>
